#include "FuzzFF.h"

using namespace std;

FuzzingFirefox::FuzzingFirefox(const char *filename){
	if(filename == NULL){
		perror("FuzzingFirefox(filename):: filename is null.\n");
		return;
	}

	printf("filename: %s\n", filename);
	fflush(stdout);

	this->m_pFile = fopen(filename, "w+");
	if(m_pFile == NULL){
		perror("fopen() failed.\n");
		return;
	}
}

bool FuzzingFirefox::generate(){
	//do something
}

FuzzingFirefox::~FuzzingFirefox(){

}

/***************************************************************************/
/***************|DATA SECTION|**********************************************/
/**************************************************************************s*/
const int intoken = 45;
const char *tokens[intoken] = {"html","title","a","href","img",
			"body","table","tr","tc","applet",
			"src","script","embed","a href=","img src=",
			"body bgcolor=", "meta", "ul","ol","li",
			"font", "marquee", "bold","em","italic",
			"div", "dl","form","frame","frameset",
			"h1","h2","sub","a href=x.x> </a","img src=x.x",
			"option value=x> </option","class","option","tr valign=","method",
			"td background=", "align" , "align=right","align=left","i" };
const char terminator[2] = {'<','>'};
const char toliteral = '%';
const char closing = '\\';
